home *** CD-ROM | disk | FTP | other *** search
/ Aminet 33 / Aminet 33 - October 1999.iso / Aminet / dev / cross / ava-0.2.5.lha / ava-0.2.5 / src / Makefile < prev    next >
Encoding:
Makefile  |  1999-03-23  |  1.5 KB  |  62 lines

  1. # AVA Makefile
  2. # Uros Platise (c) 1999
  3. #
  4. # Check directories and then
  5. #  - to compile type: make
  6. #  - to install type: make install
  7. #  - to run type: ava
  8. #
  9. # Switch -fhandle-exceptions is required by the GNU C++ 2.7.2.1 and
  10. # may be removed for higher versions (as egcs 2.9.*)
  11. #
  12. # Switch -O2 does not work with GNU C+ 2.7.2.1 due to internal errors
  13.  
  14. # Directory Setup
  15.     AVA_BIN = /usr/local/bin
  16.     AVA_LIB = /usr/local/lib/uTools/ava
  17.  
  18. # The following lines declare compile options. 
  19. #
  20. #   Note: -O option cannot be specifed for GNU C++ version 2.7.2.1
  21. #         due to the internal bug. That is why is not specifed by default.
  22.  
  23.     SRC    = Main.C Preproc.C Lexer.C Syntax.C Symbol.C \
  24.                   Segment.C Keywords.C Reports.C Object.C Avr.C
  25.  
  26.     OBJ    = Main.o Preproc.o Lexer.o Syntax.o Symbol.o \
  27.                   Segment.o Keywords.o Reports.o Object.o Avr.o
  28.  
  29.     CC    = g++
  30.     LIBS    =
  31.  
  32. # Old testing flags ...
  33. #    CPPFLAGS= -DAVA_LIB="\"$(AVA_LIB)\"" -Wall \
  34. #          -fhandle-exceptions -fenum-int-equiv -fnonnull-objects \
  35. #          -fforce-addr -fthread-jumps -felide-constructors
  36.  
  37. # Add -O option for version 2.8 or more ...
  38.  
  39. # GNU C++ compiler
  40. #    CPPFLAGS= -DAVA_LIB="\"$(AVA_LIB)\"" -Wall \
  41. #          -fhandle-exceptions -fenum-int-equiv
  42.  
  43. # egcs C++ compiler
  44.     CPPFLAGS= -O2 -DAVA_LIB="\"$(AVA_LIB)\"" -Wall \
  45.           -fenum-int-equiv
  46.  
  47.  
  48. # Do the stuff as specified above.
  49. all:    ava
  50.  
  51. ava:    $(OBJ)
  52.     $(CC) -o $@ $(CPPFLAGS) $(OBJ) $(LIBS)
  53.  
  54. clean:
  55.     rm *.o ava
  56.  
  57. install:
  58.     mkdir -p $(AVA_LIB)
  59.     rm -r $(AVA_LIB)
  60.     cp -r ../avalib $(AVA_LIB)
  61.     cp ava $(AVA_BIN)
  62.